package com.qf.staff.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 商品库存管理
 */
@Data
@TableName(value = "yu_stock")
public class Stock {
    public static final String COL_STOCK_ID = "stock_id";
    public static final String COL_STOCK_TIME = "stock_time";
    public static final String COL_STOCK_MONEY = "stock_money";
    public static final String COL_STOCK_NUMBER = "stock_number";
    public static final String COL_STATUS = "status";
    /**
     * 入库单编号
     */
    @TableId(value = "stock_id", type = IdType.INPUT)
    private Integer stockId;
    /**
     * 操作时间
     */
    @TableField(value = "stock_time", updateStrategy = FieldStrategy.NOT_EMPTY)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date stockTime;
    /**
     * 入库金额
     */
    @TableField(value = "stock_money", updateStrategy = FieldStrategy.NOT_EMPTY)
    private Integer stockMoney;
    /**
     * 入库数量
     */
    @TableField(value = "stock_number")
    private Integer stockNumber;
    @TableField(value = "stock_name")
    private Integer stockName;
    /**
     * 状态
     */
    @TableField(value = "`status`")
    private Integer status;
}